<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>每日秒杀</title>
</head>
<script src="../../static/global.js"></script>
<body>

<!-- 查询订单-->
<div style="margin-top: 20px">
</div>

<!--表格渲染-->
<table class="layui-hide" id="demo" lay-filter="test"></table>


<script>
    layui.use(['form', 'table', 'layer'], function () {
        let form = layui.form;
        let table = layui.table;
        let layer = layui.layer;
        let $ = layui.$;

        table.render({
            elem: '#demo',
            url: glodate.serverZuul + 'seckill_session/find_admin_Mei_Ri_All', //数据接口
            toolbar: '#toolbarDemo', //开启工具栏
            page: true,//开启分页
            cols: [[
                {type: 'checkbox', fixed: 'left'},
                {field: 'name', title: '场次名称'},
                {field: 'start_time', title: '开始时间'},
                {field: 'end_time', title: '结束时间'},
                {field: 'create_time', title: '申请时间'},
                {
                    field: 'status', title: '启用状态', templet:
                        function (d) {
                            if (d.status == 0) {
                                return '<span class="layui-badge-rim">显示</span>'
                            } else  {
                                return '<span class="layui-badge layui-bg-orange">不显示</span>'
                            }
                        }
                }
            ]], id: 'tableID'
        })

    });
</script>

</body>
</html>